package set_get_bag_0909;

public class Computer {
    private String CPU;
    private String memory;//内存
    private String disk;//硬盘
    private String screen;//显示器

    public Computer(String CPU, String memory, String disk, String screen) {
        this.CPU = CPU;
        this.memory = memory;
        this.disk = disk;
        this.screen = screen;
    }
//setter方法
    public void setCPU(String CPU) {
        this.CPU = CPU;
    }

    public void setMemory(String memory) {
        this.memory = memory;
    }

    public void setDisk(String disk) {
        this.disk = disk;
    }

    public void setScreen(String screen) {
        this.screen = screen;
    }

}
